package Cards;

import java.util.ArrayList;

public class test {
    public static void main(String[] args) {
        CardDemo cardDemo = new CardDemo();
        cardDemo.buyCard();
        cardDemo.display();
        cardDemo.shuffle();
        cardDemo.display();
        System.out.println("====");
        ArrayList<ArrayList<card>> ret = cardDemo.distribute();
        System.out.println("剩余牌:"+cardDemo.cards.size()+"张");
        cardDemo.display();
        for (int i = 0; i < 3; i++) {
            System.out.println("第"+i+1+"个人的牌：");
            for (int j = 0; j < ret.get(i).size(); j++) {
                System.out.print(ret.get(i).get(j));
            }
            System.out.println();
        }
    }
}
